﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ZXCompany.DBUtil
{
    public class VirtualPath
    {
        private static string virPath = "";
        private VirtualPath()
        {
            virPath = "../";
        }

        public static string getVirtualPath()
        {
            if (string.IsNullOrEmpty(virPath))
            {
                virPath = HttpContext.Current.Request.ApplicationPath;
            }
            if (virPath == "/")
            {
                virPath = "";
            }
            return virPath;
        }
    }
}